<?php


namespace app\api\validate;


class AddressValidate extends BaseValidate
{
    protected $rule = [
        'name' => 'require|isNotEmpty',
        'mobile' => 'require|isMobile',
        'province' => 'require|isNotEmpty',
        'city' => 'require|isNotEmpty',
        'country' => 'require|isNotEmpty',
        'detail' => 'require|isNotEmpty'
    ];

    protected $message = [
        'name' => '联系人姓名不能为空',
        'mobile' => '联系人手机号错误',
        'province' => '省份不能为空',
        'city' => '城市不能为空',
        'country' => '县市不能为空',
        'detail' => '乡镇街道不能为空'
    ];
}